import { http } from '@/utils/http'

export default {
  login: (data) => http.post('/sys/login', data),
  logout: () => http.get('/sys/logout'),
  // 获取验证码图片
  getCaptchaImg: (key) => http.get(`/sys/randomImage/${key}`),
  // 获取权限
  getUserPermission: () => http.get('/sys/permission/getUserPermissionByToken'),
}
